package com.lelefly.base.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UavMaintenance entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "uav_maintenance", catalog = "lelefly")
public class UavMaintenance implements java.io.Serializable {

	// Fields

	private Integer id;
	private String uavnm;
	private Date maintenanceTime;
	private String maintainer;
	private Integer maintenanceTimer;
	private String maintenanceCause;

	// Constructors

	/** default constructor */
	public UavMaintenance() {
	}

	/** minimal constructor */
	public UavMaintenance(String uavnm) {
		this.uavnm = uavnm;
	}

	/** full constructor */
	public UavMaintenance(String uavnm, Date maintenanceTime,
			String maintainer, Integer maintenanceTimer, String maintenanceCause) {
		this.uavnm = uavnm;
		this.maintenanceTime = maintenanceTime;
		this.maintainer = maintainer;
		this.maintenanceTimer = maintenanceTimer;
		this.maintenanceCause = maintenanceCause;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "UAVnm", nullable = false, length = 40)
	public String getUavnm() {
		return this.uavnm;
	}

	public void setUavnm(String uavnm) {
		this.uavnm = uavnm;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "maintenance_time", length = 10)
	public Date getMaintenanceTime() {
		return this.maintenanceTime;
	}

	public void setMaintenanceTime(Date maintenanceTime) {
		this.maintenanceTime = maintenanceTime;
	}

	@Column(name = "maintainer", length = 20)
	public String getMaintainer() {
		return this.maintainer;
	}

	public void setMaintainer(String maintainer) {
		this.maintainer = maintainer;
	}

	@Column(name = "maintenance_timer")
	public Integer getMaintenanceTimer() {
		return this.maintenanceTimer;
	}

	public void setMaintenanceTimer(Integer maintenanceTimer) {
		this.maintenanceTimer = maintenanceTimer;
	}

	@Column(name = "maintenance_cause", length = 100)
	public String getMaintenanceCause() {
		return this.maintenanceCause;
	}

	public void setMaintenanceCause(String maintenanceCause) {
		this.maintenanceCause = maintenanceCause;
	}

}